import type {  FormField } from '@/components'
import { getTree } from '@/api/systemSetting/personnel'
import { ref } from 'vue'
getTree({ remark: 'zgdw' }).then((res: any) => {
  // fields.value.find((item) => item.key === 'supervisoryCode')!.attrs!.data = res.data
  fields.value.find((item) => item.key === 'supervisoryCode')!.attrs!.data = res.data
})

export const fields = ref([
    {
    key: 'examineYear',
    label: '年检年份',
    tag: 'el-date-picker',
    placeholder: '请选择年检年份',
    attrs: {
      style: {
        width: '180px',
      },
      type: 'year',
      valueFormat: 'YYYY'
    }
  }
])
export const modelValue = {
  examineYear: new Date().getFullYear()-1 + '',
  supervisoryCode: '',
}


